<?php
/*
 * Copyright (c) 2021.  Liuhongbin All rights reserved.
 * @domain http://dkyx.cc
 * @author liuhongbin <514660094@qq.com>
 */

namespace hiduoke\services\formBuilder\element;

use FormBuilder\Driver\CustomComponent;

class ElAlert extends CustomComponent
{

    public function createValidate()
    {
    }

    public function title($title)
    {
        return $this->props(['title' => $title]);
    }

    //success/warning/info/error
    public function type($type)
    {
        return $this->props(['type' => $type]);
    }

    public function description($description)
    {
        return $this->props(['description' => $description]);
    }

    public function closable($closable = false)
    {
        return $this->props(['closable' => $closable]);
    }

    public function center($center = false)
    {
        return $this->props(['center' => $center]);
    }

    public function closeText($closeText = false)
    {
        return $this->props(['closeText' => $closeText]);
    }

    public function showIcon($showIcon = false)
    {
        return $this->props(['showIcon' => $showIcon]);
    }

    //	light/dark
    public function effect($effect = false)
    {
        return $this->props(['effect' => $effect]);
    }
}